//
//  MsgTableViewCell.m
//  CheckInforDemo
//
//  Created by bob on 2017/9/26.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "MsgTableViewCell.h"

@implementation MsgTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setIsClick:(BOOL)isClick
{
    _isClick=isClick;
    
    if (self.isClick) {
        self.accessoryType=UITableViewCellAccessoryDisclosureIndicator;
    }else{
        self.accessoryType=UITableViewCellAccessoryNone;
    }
    
}

-(void)setDeleStatue:(BOOL)deleStatue
{
    _deleStatue=deleStatue;
    
    if (deleStatue) {
        
        self.DeletImageView.hidden=NO;
        
//        self.accessoryType=UITableViewCellAccessoryNone;
        
    }else{
        
        self.DeletImageView.hidden=YES;
        
//        self.accessoryType=UITableViewCellAccessoryDisclosureIndicator;
        
    }
    
}


-(void)setModel:(MsgRecriveData *)model
{
    _model=model;
    
    self.TitileLabel.text=model.title;
    
    self.ConLabel.text=model.content;
    
    self.ContenetLabel.text=model.senderName;
    
    if (model.Select) {
        
        self.DeletImageView.image=[UIImage imageNamed:@"Select"];
        
    }else{
        
        self.DeletImageView.image=[UIImage imageNamed:@"UnSelect"];
    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
